<template>
	<view class="container">
		<view>
			<desc-wrapper :title="title" :desc="desc"></desc-wrapper>
			<z-card title="基本信息">
				<block v-if="resp">
					<view class="card-content-item">
						<text class="card-content-label_left ">您输入的手机号:</text>
						<text class="card-content_right card-text-red">{{resp.data}}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">吉凶:</text>
						<text class="card-content_right">{{resp.xiongji }}</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">数理:</text>
						<text class="card-content_right">第{{resp.shuli}}数</text>
					</view>
					<view class="card-content-item">
						<text class="card-content-label_left ">签语:</text>
						<text class="card-content_right">第{{resp.desc }}</text>
					</view>
				</block>

			</z-card>
			<view class="bottom-btns" style="transform: translateY(-100%);" @click="todashi">
				<view class="start-btn" >
					<text >大师详解</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '手机号测算结果',
				desc: '本次测算结果仅供娱乐使用，请勿用于封建迷信和违法用途。',
				resp: null,
				// keymap: {
				// 	"desc": "签语", //
				// 	"xiongji": "吉凶", //
				// 	"desc1": "解析",
				// 	"score": "打分",
				// 	"data": '手机号', //输入的电话
				// 	"shuli": '数理' //数理第 40 数
				// }
			}
		},
		onLoad(opt) {
			this.resp = JSON.parse(opt.params)
		},
		methods:{
			todashi(){
				uni.switchTab({
					url:'/pages/tabbar/service'
				})
			}
		}
	}
</script>
<style lang="scss" scoped></style>